import { request } from '@/api/service'
export const urlPrefix = '/api/dataStatistics/'
import setting from '@/setting.js';
// 访问urlPrefix_local常量
const urlPrefix_local = setting.urlPrefix_local;


//地图
export function defectMapFilter(query) {
    // query.page = 3
    // query.limit = 999
    return request({
        url: urlPrefix + 'defectMapFilter',
        method: 'get',
        params: query
    })
}

/**
 * 拼接图片url
 */
export function defectImageUrl(str){
    return urlPrefix_local + 'defectGetImageByName?imgPath=' + str
}